@extends('layout')
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Laravel</title>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">

    <!-- Styles -->
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="{{asset('css/as')}}/style2.css">
    <style>
        body {
            font-family: 'Nunito', sans-serif;
        }
        tr,td{
            border: 1px solid gray;
            padding: 8px;
        }
        th{
            background-color: pink;
        }
    </style>
</head>
@section('body')
    <body>
    <h3>这是Login页面</h3>
    <h4>{{$date}}</h4>
    <h5>{{$message}}</h5>
    <hr>
    {{date('y-m-d h:m:s',$time)}}
    <hr>
    <div style="text-align: center">
        <table style="display: flex;justify-content: center">
            <tr>
                <th>
                    ID
                </th>
                <th>Account</th>
                <th>UserName</th>
                <th>AGE</th>
                <th>CreateTime</th>
            </tr>
            @foreach($users as $key=>$value)
                <tr>
                    <td>{{$value->id}}</td>
                    <td>{{$value->account}}</td>
                    <td>{{$value->nickName}}</td>
                    <td>{{$value->age}}</td>
                    <td>{{$value->created_at}}</td>
                </tr>
            @endforeach

        </table>
        @if($users==null)
            <h5 style="text-align: center">暂无数据</h5>
        @endif

    </div>

    </body>
@endsection
</html>
